// 考勤记录
var logGridColumns = [{
    id: 'userName',
    title: '姓名',
    type: 'string',
    columnClass: 'text-center',
},
    {
        id: 'userId',
        title: '工号',
        type: 'string',
        columnClass: 'text-center',
    },
    {
        id: 'attendanceDate',
        title: '考勤日期',
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var date = new Date(record.attendanceTime);
            var content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd");
            return content;
        }
    },
    {
        id: 'quitTime',
        title: '上班刷卡',
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var date = new Date(record.quitTime);
            var content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd hh:mm");
            return content;
        }
    },
    {
        id: 'quitTime',
        title: '下班刷卡',
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var date = new Date(record.quitTime);
            var content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd hh:mm");
            return content;
        }
    },
    {
        id: 'workDuration',
        title: '工作时长',
        type: 'string',
        columnClass: 'text-center',
    },
    {
        id: 'departmentName',
        title: '部门',
        type: 'string',
        columnClass: 'text-center',
    },
    {
        id: 'initStatus',
        title: '状态',
        type: 'string',
        columnClass: 'text-center',
    }
];

/*
 var logGridOption = {
 lang: 'zh-cn',
 ajaxLoad: false,
 exportFileName: '考勤记录',
 datas: [{
 userName: '张三',
 userId: '90000',
 attendTime: '2010-01-01',
 startTime: '08:00',
 endTime: '18:00',
 lengthTime: '8小时',
 depName: '运营管理部',
 status: '正常'
 }],
 columns: logGridColumns,
 gridContainer: 'logDataGird',
 toolbarContainer: 'logGridToolBarContainer',
 tools: '',
 pageSize: 10,
 pageSizeLimit: [10, 20]
 };z`
 var logGird = $.fn.dlshouwen.grid.init(logGridOption);
 $(function () {
 logGird.load();
 });*/
